/**
 *@author lk
 *@date 2022/4/22 21:10 
 */
package com.xuecheng.manage_cms.dao;

import com.xuecheng.framework.domain.cms.CmsPage;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface CmsPageRepository extends MongoRepository<CmsPage, String> {
    //根据页面名称查询
    public CmsPage findByPageName(String pageName);

    public CmsPage findByPageNameAndPageAliase(String pageName, String pageAlias);

    public Page<CmsPage> findByPageName(String pageName, Pageable pageable);
}
